package com.jie.demo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

/**
 * 用于excel读和写的类
 * @author XieZhiJie
 * @create 2020-10-08 14:32
 */
@Data
public class DemoData {

    // 设置写入excel表头的名称和读出excel的索引
    @ExcelProperty(value = "学生编号", index = 0)
    private Integer stuNo;

    @ExcelProperty(value = "学生姓名", index = 1)
    private String stuName;

}
